#ifndef N1ARRAY_2006_10_29
#define N1ARRAY_2006_10_29

#include "N1Object.h"

class N1Array : public N1Object {
protected:
    uint32     m_nCount;
    N1Object **m_ptr;
    uint32     m_nAllocatedCount;

    void append(uint32 newCount);

public:
    N1Array();

    N1Array(uint32 size);

    N1Array(const N1Array &array);

    virtual ~N1Array();

    uint32 count() const { return m_nCount; };

    N1Object* getAt(uint32 index) { return m_ptr[index]; };

    uint32 add(N1Object* obj);

    N1NAME_DECL;
};


#endif //N1ARRAY_2006_10_29
